package bamin.com.bamindaijia.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;


import bamin.com.bamindaijia.R;
import bamin.com.bamindaijia.constant.Constant;


public class DaiJiaCostActivity extends ZjbBaseActivity implements View.OnClickListener {

    private String daijiaCost;
    private TextView mTv_cost;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dai_jia_cost);
        init();
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initViews() {
        mTv_cost.setText(daijiaCost);
    }

    @Override
    protected void setListeners() {
        findViewById(R.id.imageView_cancle).setOnClickListener(this);
        findViewById(R.id.tv_charge).setOnClickListener(this);
    }

    @Override
    protected void initSP() {

    }

    @Override
    protected void initIntent() {
        Intent intent = getIntent();
        daijiaCost = intent.getStringExtra(Constant.INTENT_KEY.DAIJIACOST);

    }

    @Override
    protected void findID() {
        mTv_cost = (TextView) findViewById(R.id.tv_cost);

    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent();
        switch (v.getId()) {
            case R.id.imageView_cancle:
                finishTo();
                break;
            case R.id.tv_charge:
                intent.setClass(this,ChargesNotesActivity.class);
                intent.putExtra(Constant.INTENT_KEY.TITLE,"收费说明");
                intent.putExtra(Constant.INTENT_KEY.URL,Constant.Url.CHARGES_NOTES);
                startActivityTo(intent);
                break;
        }
    }
}
